namespace PeaceBlogData.Tables
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class PostStats
    {
        [Key]
        [Column(Order = 0)]
        public Guid PostID { get; set; }

        [Key]
        [Column(Order = 1)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int TotalHits { get; set; }

        [Key]
        [Column(Order = 2)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int TotalViews { get; set; }

        [Key]
        [Column(Order = 3)]
        public DateTime SaveDate { get; set; }

        public virtual Posts Posts { get; set; }
    }
}
